<?php
header("Content-Type: text/html; charset=iso-8859-1");
require 'include.php';
if(check_admin()){
	$comm_id = (!empty($_REQUEST['commission'])) ? $_REQUEST['commission'] : "";
	$commission = new commission($comm_id);
	foreach($_POST as $key => $val){
		if($key == "table_content_".$commission->nom){
			foreach($val as $rank => $id){
				$q = "update membre_commissions set num = '$rank' where membre_id = '$id' and commission_id = '$comm_id' ";
				ExecRequete($q);
			}
		}
	}
}

?>